<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    <!-- <css file="__CONTROLLER_VIEW__/css/css.css"/> -->
    <!-- <js file="__CONTROLLER_VIEW__/js/js.js"/> -->
    <js file="__CONTROLLER_VIEW__/Js/js.js">
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr pid=0>
            <td width="30"></td>
            <td>分类id</td>
            <td>分类名称</td>
            <td>分类关键字</td>
            <td>分类排序</td>
            <td>是否显示</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" value="$v">
                <tr pid="{$v.pid}" cid="{$v.cid}">
                    <td width="30">
                       <a href="javascript:;" class="glyphicon glyphicon-plus button-a-plus"></a>
                        <a href="javascript:;" class="glyphicon glyphicon-minus button-a-minus" style="display:none"></a>
                    </td>
                    <td>{$v.cid}</td>
                    <td>{$v._name}</td>
                    <td>{$v.keyword}</td>
                    <td>{$v.order}</td>
                    <td>
                        <if value="$v['is_show'] eq 1">
                            <a href="javascript:;"class="glyphicon glyphicon-ok" onclick="hd_ajax('{|U:'Category/ajax_change_stat'}',{cid : {$v.cid},stat:1,})">
                        <else/>
                            <a href="javascript:;" class="glyphicon glyphicon-remove" onclick="hd_ajax('{|U:'Category/ajax_change_stat'}',{cid : {$v.cid},stat:0,})"></a>
                        </if>
                    </td>

                    <td width="200">
                        <a href="{|U:'Category/add_son',array('cid'=>$v['cid'])}" class="btn btn-primary btn-xs">添加子类</a>
                        <a href="{|U:'Category/edit_cate',array('cid'=>$v['cid'])}" class="btn btn-success btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs"onclick="if(confirm('确定删除吗？')) location.href='{|U:'category/del',array('cid'=>$v['cid'])}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


